<!--
 *this file is part of nseer erp
 *Copyright (C)2006-2010 Nseer(Beijing) Technology co.LTD/http://www.nseer.com 
 *
 *This program is free software; you can redistribute it and/or
 *modify it under the terms of the GNU General Public License
 *as published by the Free Software Foundation; either
 *version 2 of the License, or (at your option) any later version.
 -->
<%@page contentType="text/html; charset=UTF-8" language="java" import="java.sql.*,include.nseer_cookie.*" import="java.util.*" import="java.io.*" import="include.nseer_cookie.exchange" import="include.nseer_db.*,java.text.*"%>
<%try{nseer_db qcs_db=new nseer_db((String)session.getAttribute("unit_db_name"));%>
<%@include file="../include/head_list.jsp"%>
<jsp:useBean id="demo" class="include.tree_index.businessComment" scope="page"/>
<jsp:useBean id="NseerSql" class="include.query.NseerSql" scope="page"/>
<jsp:useBean id="mask" class="include.operateXML.Reading"/>
<jsp:setProperty name="mask" property="file" value="xml/qcs/qcs_complain.xml"/>
<%
DealWithString DealWithString=new DealWithString(application);
String mod=request.getRequestURI();
demo.setPath(request);
String handbook=demo.businessComment(mod,"您正在做的业务是：","document_main","reason","value");
%>
<jsp:useBean id="validata" scope="page" class="validata.ValidataNumber"/>
<jsp:useBean id="column" class="include.get_sql.getKeyColumn" scope="page"/>
<jsp:useBean id="query" scope="page" class="include.query.query_three"/>
<%@taglib uri="/WEB-INF/mytag.tld" prefix="page"%>
<table <%=TABLE_STYLE3%> class="TABLE_STYLE3">
<tr <%=TR_STYLE1%> class="TR_STYLE1">
<td <%=TD_HANDBOOK_STYLE1%> class="TD_HANDBOOK_STYLE1"><div class="div_handbook"><%=handbook%></div></td>
</tr>
</table>
<%
String tablename="qcs_complain";
String realname=(String)session.getAttribute("realeditorc");
String condition="excel_tag='2'";
String queue="order by register_time desc";
String validationXml="../../xml/qcs/qcs_complain.xml";
String nickName="投诉登记单";
String fileName="query_list.jsp";
String rowSummary=demo.getLangBlank("erp","当前符合条件的投诉登记单总数：");
%>
<%@include file="../../include/search.jsp"%>
<%ResultSet rs=qcs_db.executeQuery(sql_search);%>
<%@include file="../../include/search_top.jsp"%>
<div id="nseer_grid_div"></div>
<script type="text/javascript">
function id_link(link){
document.location.href=link;
}
var nseer_grid=new nseergrid();
nseer_grid.callname="nseer_grid";
nseer_grid.parentNode=nseer_grid.$("nseer_grid_div");
nseer_grid.columns=[
{name: '<%=demo.getLang("erp","投诉单编号")%>'},
{name: '<%=demo.getLang("erp","投诉日期")%>'},
{name: '<%=demo.getLang("erp","产品编号")%>'},
{name: '<%=demo.getLang("erp","产品名称")%>'},
{name: '<%=demo.getLang("erp","登记人")%>'},
{name: '<%=demo.getLang("erp","处理状态")%>'}
]
nseer_grid.column_width=[180,100,180,100,150,80];
nseer_grid.auto='<%=demo.getLang("erp","产品名称")%>';
nseer_grid.data=[
<page:pages rs="<%=rs%>" strPage="<%=strPage%>">
<%
String dealwith_tag="";
String execute_tag="";
String fund_pre_tag="";
String color="#FF9A31";
if(rs.getString("dealwith_tag").equals("0")){
dealwith_tag="未处理";
}else if(rs.getString("dealwith_tag").equals("1")){
dealwith_tag="处理完成";
color="3333FF";
}
%>
['<div style="text-decoration : underline;color:#3366FF" onclick=id_link("query.jsp?complain_id=<%=rs.getString("complain_id")%>")><%=rs.getString("complain_id")%></div>','<%=rs.getString("complain_time")%>','<%=exchange.toHtml(rs.getString("product_id"))%>','<%=exchange.toHtml(rs.getString("product_name"))%>','<%=exchange.toHtml(rs.getString("register"))%>','<span style="color:<%=color%>"><%=dealwith_tag%></span>'],
</page:pages>
['']];
nseer_grid.init();
</script>
<div id="drag_div"></div>
<div id="point_div_t"></div>
<div id="point_div_b"></div>
<%@include file="../../include/search_bottom.jsp"%>
<%@include file="../../include/head_msg.jsp"%>
<page:updowntag num="<%=intRowCount%>" file="<%=fileName%>"/>
<%
qcs_db.close();
}catch(Exception ex){ex.printStackTrace();}
%>